package modele;

import controlleur.Controlleur;



public class CarteEvenement extends Carte {
	private String description;
	private int nbPoint;
	private int nbAbs;

	public CarteEvenement(int id, String nom, String description, int nbPoint,
			int nbAbs) {
		this.setId(id);
		this.setNom(nom);
		this.description = description;
		this.nbPoint = nbPoint;
		this.nbAbs = nbAbs;
	}

	public CarteEvenement(int id, String nom) {
		this.setId(id);
		this.setNom(nom);
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getNbPoint() {
		return nbPoint;
	}

	public void setNbPoint(int nbPoint) {
		this.nbPoint = nbPoint;
	}

	public int getNbAbs() {
		return nbAbs;
	}

	public void setNbAbs(int nbAbs) {
		this.nbAbs = nbAbs;
	}

	public void tirerCarteEvenement(Case c,Controlleur controlleur) {
		if (c instanceof CaseEvenement){
			controlleur.donnerCarteEvenement(this);
			((CaseEvenement)c).effetCarteEvenement(this.nbAbs, this.nbPoint,controlleur);
			
		}

	}


}
